package in.bibek.spring.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController 
{
   @RequestMapping("/signup")
   public String showRegistraion()
   {
	   return "/user/signup";
   }
   
   @RequestMapping("/registerUser")
   public String registerUser(HttpServletRequest request)
   {
	   System.out.println("User Name "+request.getParameter("name"));
	   return "/user/home";
   }
   
   @RequestMapping("/contact")
   public String showContactUs()
   {
	   System.out.println("Contact page rendering.");
	   return "contact";
   }
}
